package com.woniu.permissions.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年05月23日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("role")
@ApiModel("角色对象")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    /*
     * 角色id
     */
    @ApiModelProperty(name = "roleId",value = "角色表")
    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer roleId;

    /*
     * 角色名
     */
    @ApiModelProperty(name = "roleName",value = "角色名")
    @TableField("role_name")
    private String roleName;


}
